﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Playables;
using UnityEngine.Timeline;
using UnityEngine.UI;


[TrackClipType(typeof(TextSwitcherClip))]
[TrackBindingType(typeof(Text))]
public class TextSwitcherTrack : TrackAsset {
    public override Playable CreateTrackMixer(PlayableGraph graph, GameObject go, int inputCount) {
        return ScriptPlayable<TextSwitcherMixerBehaviour>.Create(graph, inputCount);
    }
}


[Serializable]
public class TextSwitcherBehaviour : PlayableBehaviour {
    public Color  color    = Color.white;
    public int    fontSize = 14;
    public string text;
}

